<template>
  <!--
  @name: Test
  @data: 2024/6/25 17:20
-->
  <div id="test">
    我是自定义组件
<!--    @click="$emit('someEvent','哈哈')"-->
    <h1>哈哈哈</h1>
    <el-input v-model="form[props.field]" style="width: 240px" placeholder="Please input" />
  </div>
</template>
<script setup lang="ts">
import {ref} from "vue";
import type {HyCustomInterface} from "@/interface/HyFormInterface";
const props=defineProps<HyCustomInterface>();
const input=ref();
/** 双向绑定 */
const form = defineModel("form", {
  type: Object,
  default: () => {
  },
});
console.log(16, props);
console.log(24, form.value);

</script>
<style scoped>

</style>
